package com.fare.taluo.vo.core;

import java.util.Date;

public class SourceEntityVO implements Comparable<SourceEntityVO>{

	private Long id;
	private String name;
	private String shortName;//简称
	private String url;
	private String webTyle;// 网站类型
	private Integer crawlStatus; // 1.表示系统从这些网站抓数；0.表示系统不到这些网站抓数。
	private Date createTime;
	private String hbaseKey;
	private String carrierKey;
	private Long userId;
	private Long userName;
	
	

	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	public String getIdAndHbaseKeyAndName() {
		return this.getId()+","+this.getHbaseKey()+","+this.getName();
	}


	public String getCarrierKey() {
		return carrierKey;
	}

	public void setCarrierKey(String carrierKey) {
		this.carrierKey = carrierKey;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getHbaseKey() {
		return hbaseKey;
	}

	public void setHbaseKey(String hbaseKey) {
		this.hbaseKey = hbaseKey;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getWebTyle() {
		return webTyle;
	}

	public void setWebTyle(String webTyle) {
		this.webTyle = webTyle;
	}

	public Integer getCrawlStatus() {
		return crawlStatus;
	}

	public void setCrawlStatus(Integer crawlStatus) {
		this.crawlStatus = crawlStatus;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	
	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getUserName() {
		return userName;
	}

	public void setUserName(Long userName) {
		this.userName = userName;
	}

	@Override
	public int compareTo(SourceEntityVO o) {
		return o.getId().compareTo(this.getId());
	}

}
